<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <title>首页</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <include file="Public:iframe_header"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/mobile/css/ul-li.css"/>
    <style type="text/css">
        * {
            font-size: 95%;
            font-family: haettenschweiler;
        }
        body{

            overflow-x: hidden;
        }

        .h-img {
            width: 100%;
            /*height: auto;*/
            text-align: center;
            overflow: hidden;
        }

        .h-ss {
            position: absolute;
            top: 50px;
            left: 5%;
            display: flex;/*弹性布局*/
            flex-flow: row;/*单排*/
            margin: 0;
            padding: 0;
            width: 90%;
            height: 30px;
            text-align: center;
            background-color: #fff;
            border: 1px solid #FFCC1D;
            /*border-radius: 15px;*/
            overflow: hidden;
        }

        .h-ss .h-qz {
            padding: 0;
            margin: 0;
            width: 20%;
            height: 30px;
            border-radius: 15px 0px 0px 15px;
        }

        .h-ss .h-qz select {
            padding: 0;
            margin: 0;
            height: 100%;
            width: 100%;
            text-align: center;
            border-radius: 15px 0px 0px 15px;
            border: 0;
        }

        .h-ss .h-inp {
            width: 60%;
            height: 30px;
            border: 0;
        }

        .h-ss .h-inp input {
            width: 100%;
            height: 30px;
            font-size: 0.9em;
            border-radius: 0px 0px 0px 0px;
            border: 0;
            -webkit-user-select:auto;
        }

        .h-ss .h-s-img {
            width: 20%;
            height: 100%;
            border-radius: 0px 15px 15px 0px;
            color: white;
            background-color: #FFCC1D;
            line-height: 30px;
        }



    </style>
</head>
<body>
<div class="mui-content" style="background-color: #fff;">


    <div class="mui-scroll">

        <div class="h-img">
            <img src="__STATIC__/mobile/img/banner.png" style="width: 100%;height: 100%;"/>

            <div class="h-ss">
                <div class="h-qz">

                </div>
                <div class="h-inp">
                    <input placeholder="输入企业名..." name="" id="servar_name" value="" />
                </div>

                <div class="h-s-img" _href="{:url('Company/zquery')}">
                    <!--
                        作者：offline
                        时间：2018-06-27
                        描述：弃用
                        <img src="__STATIC__/mobile/img/qy-ss.png" width="50%" height="100%" />
                    -->
                    搜索
                </div>
            </div>
        </div>

        <ul class="mui-table-view" >
            <li class="mui-table-view-cell" _href="{$dynamic_result.url}" onclick="parent.setpage($(this))">
                <a href="javascript:void(0)" class="">
                    <span id="" style="color: red;">【要闻】</span>
                    {$dynamic_result.title}
                </a>
            </li>
        </ul>
        <div class="jg"></div>
        <ul class="mui-table-view">
            <div class="gsgg">
                <div id="" class="gs">
                    <img src="__STATIC__/mobile/img/gsgg.png" style="width:1em;"/>&nbsp;&nbsp;<b>公示公告</b>
                </div>
                <div id="" class="gd" _href="{:url('Publicity/zindex')}" onclick="parent.setpage($(this))">
                    查看更多>
                </div>
            </div>
            <volist name="publicityList" id="vo">
                <li class="mui-table-view-cell openg" _href="{:url('Publicity/detail_continue')}" onclick="return_publicity(this)" id="{$vo.id}">
                    <div>
                        {$vo.title}
                    </div>
                    <div>
                        {$vo.create_time}
                    </div>
                </li>
            </volist>
        </ul>
        <div class="jg"></div>
        <ul class="mui-table-view">
            <div class="gsgg">
                <div id="" class="gs">
                    <img src="__STATIC__/mobile/img/tzgg.png" style="width:1em;"/>&nbsp;&nbsp;<b>通知公告</b>
                </div>
                <div id="" class="gd" _href="{:url('Notice/zindex')}" onclick="parent.setpage($(this))">
                    查看更多>
                </div>
            </div>
            <volist name="noticeList" id="vo">
            <li class="mui-table-view-cell" _href="{:url('notice/detail_continue')}" onclick="return_notice(this)" id="{$vo.id}">
                <div>
                    {$vo.title}
                </div>
                <div>
                    {$vo.create_time}
                </div>
            </li>
            </volist>
        </ul>

        <div class="jg"></div>
        <ul class="mui-table-view">
            <div class="gsgg">
                <div id="" class="gs">
                    <img src="__STATIC__/mobile/img/zcwj.png" style="width:1em;"/>&nbsp;&nbsp;<b>政策文件</b>
                </div>
                <div id="" class="gd" _href="{:url('Policy/zindex')}" onclick="parent.setpage($(this))">
                    查看更多>
                </div>
            </div>
            <volist name="policyList" id="vo">
            <li class="mui-table-view-cell" _href="{:url('Policy/detail_continue')}" onclick="return_policy(this)" id="{$vo.id}">
                <div>
                    {$vo.title}
                </div>
                <div>
                    {$vo.create_time}
                </div>
            </li>
            </volist>
        </ul>
        <div class="jg"></div>



    </div>
    <script>
        $(".h-s-img").click(function(){
            var servar_name = $("#servar_name").val();
            parent.setpage($(this),servar_name);
        });

        //检测是否有权限
        function return_publicity(obj){
            var a_href = $(obj).attr('_href');
            var id = $(obj).attr('id');

            var formData = new FormData();
            formData.append('id',id);

            $.ajax({
                url:a_href,
                type:'POST',
                data:formData,
                async:false,
                processData:false,
                contentType:false,
                success:function(result){
                    if(result.code == 0){
                        parent.tips(result.msg);
                        return false;
                    }
                    window.location.href=result.url;
                }

            });
        }

        //检测是否有权限
        function return_policy(obj){
             var a_href = $(obj).attr('_href');
             var id = $(obj).attr('id');

             var formData = new FormData();
             formData.append('id',id);

             $.ajax({
                 url:a_href,
                 type:'POST',
                 data:formData,
                 async:false,
                 processData:false,
                 contentType:false,
                 success:function(result){
                     if(result.code == 0){
                         parent.tips(result.msg);
                         return false;
                     }
                     window.location.href=result.url;
                 }

             });
        }

        //检测是否有权限
        function return_notice(obj){
            var a_href = $(obj).attr('_href');
            var id = $(obj).attr('id');

            var formData = new FormData();
            formData.append('id',id);

            $.ajax({
                url:a_href,
                type:'POST',
                data:formData,
                async:false,
                processData:false,
                contentType:false,
                success:function(result){
                    if(result.code == 0){
                        parent.tips(result.msg);

                        return false;
                    }
                    window.location.href=result.url;
                }

            });
        }
    </script>
</div>
</body>
</html>